

***********************************;
** add in zip info to HEDIS2010   *;
***********************************;

options ls=76 nofmterr;

libname raw '/data/Medicare_P01_2009/data/HEDIS/rawdata';
libname new '/data/Medicare_P01_2009/data/HEDIS/sasdata';

data a10; set new.hedis2010;

proc sort; by zip5;

data zip; set new.zipinfo;

     proc sort; by zip5;

data new.hedis2010; merge a10(in=ok) zip; by zip5;

     if ok;

     proc contents varnum;
          title 'HEDIS2010 analysis dataset';

     proc freq;
          tables totmonth denom_flag plan_type org_id;
          title 'HEDIS2010 Analysis Dataset';

endsas;